<template>
  <div>
    <el-aside width="200px" style="background-color: white">
      <el-menu  class="el-menu-vertical-demo"  v-for="(item, index) in $store.state.app.permissions" :key="item.url" style="text-align: left">
        <el-menu-item style="margin-left: 17px;" @click="goRoute(item.url)" >
          <i class="el-icon-menu"></i>
          <span slot="title" style="font-size: 19px;">&nbsp;&nbsp;&nbsp{{item.permissionName}}</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
  </div>
</template>

<script>
export default {
  name: 'ViewAside',
  data() {
    return {
      permission: ''
    }
  },
  methods: {
    goRoute(row){
      this.$router.push(row)
    }
  },
  mounted() {
  }
}

</script>

<style>
/* div{
 background-color: aqua;
} */
</style>
